package com.example.portdemo.date.model;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "finance")
public class FinanceEntity {
    @PrimaryKey
    private String id;
    private String name;
    private double price;
    private double change;
    private double changePercent;
    private Double marketCap;

    // Constructor
    public FinanceEntity(String id, String name, double price, double change, double changePercent, Double marketCap) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.change = change;
        this.changePercent = changePercent;
        this.marketCap = marketCap;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getChange() {
        return change;
    }

    public void setChange(double change) {
        this.change = change;
    }

    public double getChangePercent() {
        return changePercent;
    }

    public void setChangePercent(double changePercent) {
        this.changePercent = changePercent;
    }

    public Double getMarketCap() {
        return marketCap;
    }

    public void setMarketCap(Double marketCap) {
        this.marketCap = marketCap;
    }
}
